The <meta>
element typically provide metadata such as a document's keywords, description, and author last modified, and other metadata. Any number of META elements can be placed in the head section of an HTML or XHTML document.
META's name
attribute provides a property name while the content
attribute gives the corresponding value. The content
attribute value may contain text and entities, but it may not contain HTML tags. There is no standard list of meta properties, so you may define whatever metadata they like. Here's is an example:
The <meta>
tag in the example above simply defines the author of the document.
Note : Metadata will not be displayed on the page, but will be machine parsable, and can be used by browsers, search engines or other web services.
Meta tag typically used to declare character encoding inside HTML document.
However, to set character encoding inside CSS document, the @charset at-rule is used.
Note : UTF-8 is a very versatile and recommended character encoding to choose. However, if this is not specified, then the default encoding of the platform is used.
Some search engines use metadata, especially keywords and descriptions to index web pages; however this may not necessarily be true. Keywords giving extra weight to a document's keywords and description provide a short synopsis of the page. The meta tags in the following example define the keywords and description of a page.
Tip:Search engines will often use the meta description of a page to create short synopsis for the page when it appear in search results..
You can use the meta viewport tag to enable zooming of your websites on mobile devices.
Tip:Always use the <meta>
viewport tag in your web pages. It will make your website more accessible on mobile devices like cell phones and tablets.
How Many People Visit |
|